<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->resource('category', '\Modules\Goods\Http\Controllers\Admin\CategoryController');
    $router->resource('goods', '\Modules\Goods\Http\Controllers\Admin\GoodsController');
    $router->resource('coupon/active', '\Modules\Coupon\Http\Controllers\Admin\CouponActiveController');
});
